import Vue from 'vue'

import 'normalize.css/normalize.css' // a modern alternative to CSS resets

import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios' //导入axios

import ElementUI from 'element-ui'
import * as echarts from 'echarts';
import 'element-ui/lib/theme-chalk/index.css'
import './assets/iconfont/iconfont.css'
import './assets/styles/base.styl'
import './permission' // permission control
import './icons' // icon
import Fragment from 'vue-fragment'


Vue.use(ElementUI)

import { Ajax } from './utils'
Vue.use(Fragment.Plugin)
Vue.use(Ajax)
Vue.use(echarts)


Vue.config.productionTip = false
axios.defaults.withCredentials = true //允许跨域携带session信息

new Vue({
	router,
	store,

	render: (h) => h(App),
}).$mount('#app')
